FlowTrigger
The FlowTrigger class is responsible for triggering a flow within a workflow system. It manages the flow's project, parameters, starter user, and execution behavior.
Properties
| Name | Description |
|---|---|
| Caption | The caption dictionary representing localized captions for the flow object. |
| ProjectName | The name of the project to which this flow trigger belongs. |
| FlowName | The name of the flow associated with this trigger. |
| Source | The source options for the flow trigger. |
| Key | A unique identifier for the workflow step. |
| ParentProcessId | The ID of the parent process for this flow trigger. |
| Name | Name for the workflow step. |
| TriggeredProcessCountVariable | The variable to store the count of triggered processes. |
| StarterUserType | The type of the starter user (e.g., UserId or UserName). |
| WorkflowCodeInstance | The workflow code instance associated with the flow object. |
| ShowFlowHistory | Determines whether to show the flow's history. |
| Parameters | A dictionary of flow parameters associated with this flow trigger. |
| CachedDMObjects | The cached document management objects related to the flow object. |
| TypeCode | The type code associated with the flow object. |
| ProjectId | The ID of the project to which this flow trigger belongs. |
| FlowId | The ID of the flow associated with this trigger. |
| StarterUser | The user who starts the flow. |
Constructors
| Name | Description |
|---|---|
| FlowTrigger(name, workflowData, workflowCodeInstance) | Constructor for the FlowTrigger class. Initializes a new instance of the FlowTrigger class. |
| FlowTrigger(name, workflowData, workflowCodeInstance) | Constructor for the FlowTrigger class. Initializes a new instance of the FlowTrigger class. |
Methods
| Name | Description |
|---|---|
| SetParentProcessId(parentProcessId) | Sets the parent process ID for this flow trigger. |
| GetParentProcessId() | Returns the parent process ID if available, otherwise returns 0. |
| Execute(workflowUserContext, processResponse) | Executes the flow trigger by resolving source data and starting the associated flow. |
| Initialize() | Initializes the flow trigger. This method is an implementation of the abstract Initialize method from the base class. |
Events
| Name | Description |
|---|---|
| OnAfterExecution(sender, args) | Occurs after the execution of the workflow step. |
| OnBeforeExecution(sender, args) | Occurs before the execution of the workflow step. |